<?php if ($this->pageCount): ?>
<div class="text-center">
<ul class="pagination">
<?php 
	if (isset($this->first)){
		echo '<li><a href="' . $this->url(array('page' => $this->first)) . '"> &laquo;</a><li>';
		
	}
	if (isset($this->previous)){
  		echo '<li><a href="' . $this->url(array('page' => $this->previous)). '"> &lt</a><li>';
	}
	foreach ($this->pagesInRange as $page){
	   if ($page != $this->current){
	   		echo  '<li><a href="' . $this->url(array('page' => $page)). '">' . $page . '</a><li> ';
	  }else{
	  	echo  '<li  class="active"><a href="' . $this->url(array('page' => $page)). '">' . $page . '<span class="sr-only">(current)</span></a><li> ';
	  }
   }
	 if (isset($this->next)){
		echo '<li><a href="' . $this->url(array('page' => $this->next)) . '"> &gt;</a><li>';
  	 }
  	 if (isset($this->last)){
  	 	echo '<li><a href="' . $this->url(array('page' => $this->last)) . '"> &raquo;</a><li>';
  	 }
  ?>
     </ul>
</div>
<?php endif; ?>
 